<?php
/*
Template Name: NBSB
 */
?>

<?php get_header(); ?>

	<div id="content" class="nbsb-column">

        <div class="page-nbsb">
            <div class="list-nb fixbox">
                <h2>{ 红榜 }</h2>
                <?php $nb_posts = get_posts('numberposts=20&orderby=date&tag=niubility'); foreach( $nb_posts as $post ) : setup_postdata($post);?>
                <div>
                    <?php $origin_link = get_post_custom_values("Original_URL"); if($origin_link != '') : ?>
                        <h3><a href="<?php echo $origin_link[0]; ?>" title="阅读原文" rel="external"><?php the_title(); ?></a> - <span><a href="<?php the_permalink(); ?>#respond" >评论</a></span> - <span><?php echo get_the_time('Y/m/d'); ?></span></h3>
                    <div class="entry">
                        <?php the_content(); ?>
                    </div>
                    <?php endif; ?>
                </div> 
                <?php endforeach; ?>
                <span class="alignright"><a href="<?php bloginfo('url'); ?>/articles/tag/niubility">更多 &raquo;</a></span>
            </div>
            <div class="list-sb fixbox">
                <h2>{ 黑榜 }</h2>
                <?php $sb_posts = get_posts('numberposts=20&orderby=date&tag=shability'); foreach( $sb_posts as $post ) : setup_postdata($post);?>
                <div>
                    <?php $origin_link = get_post_custom_values("Original_URL"); if($origin_link != '') : ?>
                    <h3><a href="<?php echo $origin_link[0]; ?>" title="阅读原文" rel="external"><?php the_title(); ?></a> - <span><a href="<?php the_permalink(); ?>#respond" >评论</a></span> - <span><?php echo get_the_time('Y/m/d'); ?></span></h3>
                    <div class="entry">
                        <?php the_content(); ?>
                    </div>
                    <?php endif; ?>
                </div> 
                <?php endforeach; ?>
                <span class="alignright"><a href="<?php bloginfo('url'); ?>/articles/tag/shability">更多 &raquo;</a></span>
            </div>
        </div>
	</div>


<?php get_footer(); ?>
